package com.lemon.secondhandplatform;

import android.app.Application;

import com.lemon.secondhandplatform.mode.User;
import com.lemon.secondhandplatform.ui.util.ToastUtils;

public class BaseApplication extends Application {

    //用户
    private static User user;

    //wifi是否连接
    public static boolean wifi;
    //手机是否连接
    public static boolean mobile;
    //是否有网
    public static boolean network;

    @Override
    public void onCreate() {
        super.onCreate();
        ToastUtils.register(getApplicationContext());
    }

    public static User getUser() {
        return user;
    }

    public static void setUser(User user) {
        BaseApplication.user = user;
    }
}
